import { createRouter, createWebHashHistory } from 'vue-router'

import Login from '@/views/login/Login.vue'
import Main from '@/views/main/Main.vue'
import NotFound from '@/views/not-found/NotFound.vue'

const routes = [
  { path: '/', redirect: '/Main' },
  { path: '/Login', component: Login },
  { path: '/Main', component: Main },
  { path: '/:pathMatch(.*)', component: NotFound },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
